package com.zrx.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Auther:
 * @Date:
 * @Description: 地址实体类
 */
@Data
@TableName(value = "bs_address")
@EqualsAndHashCode(callSuper = false)
public class Address extends Model<Address> implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    //省
    private String province;
    //市
    private String city;
    //区
    private String area;
    //具体地址
    private String detailAddress;
    //邮政编码
    private String emailCode;
    //收货人姓名
    private String receiver;
    //收货人电话
    private String tel;
    private String isDefault; //是否是默认收货地址


}
